package com.gnerv.author.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.author.entity.FileManage;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * @author Gnerv LiGen
 * @description
 * @data 2019/7/25
 */
public interface IFileService extends IService<FileManage> {

    FileManage save(MultipartFile file) throws IOException;

    FileManage save(MultipartFile file, FileManage fileManage);

    FileManage select(String bId);

    File download(String bId);

}
